package org.joy.db2.query;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import org.joy.analyzer.Document;
import org.joy.analyzer.DocumentCreationException;
import org.joy.analyzer.Paragraph;

public class Query extends Document {
    public Query(String s) {
	this.paragraphs.add(new Paragraph(s, 0.0, 0));
    }

    public Query() {
    }

    @Override
    public void createFromInputStream(InputStream in, String URL)
	    throws IOException, DocumentCreationException {
	BufferedReader br = new BufferedReader(new InputStreamReader(in));
	this.paragraphs.add(new Paragraph(br.readLine(), 0.0, 0));
    }

    @Override
    public String getMineType() {
	return null;
    }

    @Override
    public String getSuffix() {
	return null;
    }

    @Override
    public String getTitle() {
	return null;
    }

}
